<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}图形识别系统{% endblock %}</title>
    <link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
</head>
<body>
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <header class="bg-primary text-white p-3 mb-4">
                    <div class="container">
                        <h1 class="text-center mb-0">
                            <i class="bi bi-search"></i> 图形识别系统
                        </h1>
                        <p class="text-center mb-0">基于OpenCV的实时图形识别，支持三角形、正方形、长方形、圆形识别</p>
                    </div>
                </header>
            </div>
        </div>

        <div class="row">
            <div class="col-12">
                {% block content %}{% endblock %}
            </div>
        </div>

        <div class="row">
            <div class="col-12">
                <footer class="mt-5 p-3 text-center text-muted border-top">
                    <p>💡 使用提示: 建议使用白色背景，确保图形清晰可见</p>
                    <p>&copy; 2023 图形识别系统</p>
                </footer>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    {% block scripts %}{% endblock %}
</body>
</html>